//package com.example.service;
//
//import com.example.domain.Person;
//import com.example.domain.PersonRepository;
//import org.springframework.context.annotation.Profile;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import javax.transaction.Transactional;
//
///**
// * Created by Administrator on 2017/1/6 0006.
// */
//
//@Service
//@Profile("local") //开发环境的时候 才能被找到
//public class PersonService {
//
//    @Resource
//    private PersonRepository personRepository;
//
//    @Transactional
//    public void save(Person demo){
//        personRepository.save(demo);
//    }
//}
